﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Colorful.Models
{
    /// <summary>
    /// 绑定字段
    /// </summary>
    public class BindField : Attribute
    {
        public string Id { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 字段类型：MenuFieldType
        /// </summary>
        public MenuFieldType Type { get; set; }

        /// <summary>
        /// BindField
        /// </summary>
        /// <param name="name">字段名称</param>
        /// <param name="type">字段类型</param>
        public BindField(string name, MenuFieldType type = MenuFieldType.Text)
        {
            this.Name = name;
            this.Type = type;
        }
    }
}
